package com.uchiha.nova.core.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.uchiha.nova.core.tool.support.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 系统字典 实体类
 *
 * @author Uchihashiamu
 */
@Data
@TableName("nova_dict")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "Dict对象")
public class DictEntity extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 父主键
	 */
    @Schema(description = "父主键")
    @TableField("parent_id")
	private Long parentId;
	/**
	 * 字典码
	 */
    @Schema(description = "字典码")
    @TableField("code")
	private String code;
	/**
	 * 字典值
	 */
    @Schema(description = "字典值")
    @TableField("dict_key")
	private String dictKey;
	/**
	 * 字典名称
	 */
    @Schema(description = "字典名称")
    @TableField("dict_value")
	private String dictValue;

}
